home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / 7edit / source / sveditwindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.8 KB  |  93 lines

  1. /*
  2.     File:        SVEditWindow.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Original version by Jon Lansdell and Nigel Humphreys.
  7.                             3.1 updates by Greg Sutton.    
  8.  
  9.     Copyright:    Copyright ©1995-1999 by Apple Computer, Inc., All Rights Reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.                 7/19/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  21.                 
  22.  
  23. */
  24.  
  25.     
  26. #ifndef __SVEDITWINDOW__
  27. #define __SVEDITWINDOW__
  28.     
  29. #include <Memory.h>
  30. #include <Types.h>
  31. #include <Quickdraw.h>
  32. #include <Fonts.h>
  33. #include <ToolUtils.h>
  34. #include <Traps.h>
  35. #include "SVEditGlobals.h"
  36. #include "SVEditUtils.h"
  37. #include "SVAppleEvents.h"
  38.  
  39. DPtr        DPtrFromWindowPtr(WindowPtr theWindow);
  40.  
  41. pascal void MyGrowWindow(WindowPtr w,
  42.                          Point     p);
  43.  
  44. pascal void GetPageEnds(short          pageHeight,
  45.                                               TEHandle       theText,
  46.                                               PageEndsArray  pageBounds,
  47.                                               short          *nPages);
  48.  
  49. pascal void DoZoom(WindowPtr w, short c, Point p);
  50.  
  51. pascal void DoContent(WindowPtr theWindow, EventRecord theEvent);
  52.  
  53. pascal OSErr DoActivate(WindowPtr theWindow, Boolean   activate);
  54.  
  55. pascal void DoUpdate(WindowPtr theWindow);
  56.  
  57. DPtr        NewDocument(Boolean isForOldDoc, WindowPtr behindWindow);
  58.  
  59. pascal void CloseMyWindow(WindowPtr aWindow);
  60.  
  61. pascal void ShowSelect(DPtr theDoc);
  62.  
  63. pascal void AdjustScrollbars(DPtr theDoc, Boolean needsResize);
  64.                                                      
  65. pascal void GetWinContentRect(WindowPtr theWindow, Rect *r);
  66.  
  67. pascal void DoResizeWindow(DPtr theDoc);
  68.  
  69. pascal void ResizePageSetupForDocument(DPtr theDoc);
  70.  
  71. pascal void InvalidateDocument(DPtr theDoc);
  72.  
  73. pascal void DrawPageExtras(DPtr theDoc);
  74.  
  75. pascal void PrintWindow(DPtr theDoc, Boolean askUser);
  76.  
  77. pascal void VActionProc(ControlHandle control, short part);
  78.  
  79. pascal void HActionProc(ControlHandle control, short part);
  80.  
  81. pascal void AdjustTE(DPtr theDoc);
  82. pascal void AdjustHV(Boolean isVert, ControlHandle control, DPtr theDoc, Boolean canRedraw);
  83. pascal void AdjustScrollValues(DPtr theDoc, Boolean canRedraw);
  84. pascal void GetTERect(WindowPtr window, Rect *teRect);
  85. pascal void AdjustScrollSizes(DPtr theDoc);
  86. pascal void CommonAction(ControlHandle control, short *amount);
  87. pascal void OffsetWindow(WindowPtr aWindow);
  88. pascal void GetLocalUpdateRgn(WindowPtr window, RgnHandle localRgn);
  89. void                 DoBackgroundContent ( WindowPtr theWindow, EventRecord theEvent);
  90. pascal void DrawPageBreaks(DPtr theDoc);
  91.  
  92.  
  93. #endif